<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="identitytoolkit_v1.html">Identity Toolkit API</a> . <a href="identitytoolkit_v1.accounts.html">accounts</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#createAuthUri">createAuthUri(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">If an email identifier is specified, checks and returns if any user account is registered with the email. If there is a registered account, fetches all providers associated with the account's email. If the provider ID of an Identity Provider (IdP) is specified, creates an authorization URI for the IdP. The user can be directed to this URI to sign in with the IdP. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<p class="toc_element">
  <code><a href="#delete">delete(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a user's account.</p>
<p class="toc_element">
  <code><a href="#issueSamlResponse">issueSamlResponse(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Experimental</p>
<p class="toc_element">
  <code><a href="#lookup">lookup(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.</p>
<p class="toc_element">
  <code><a href="#resetPassword">resetPassword(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Resets the password of an account either using an out-of-band code generated by sendOobCode or by specifying the email and password of the account to be modified. Can also check the purpose of an out-of-band code without consuming it.</p>
<p class="toc_element">
  <code><a href="#sendOobCode">sendOobCode(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.</p>
<p class="toc_element">
  <code><a href="#sendVerificationCode">sendVerificationCode(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Sends a SMS verification code for phone number sign-in. To localize the text of the SMS sent to the user, set the HTTP header `X-Firebase-Locale` to the language code that corresponds with the user's locale. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<p class="toc_element">
  <code><a href="#signInWithCustomToken">signInWithCustomToken(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Signs in or signs up a user by exchanging a custom Auth token. Upon a successful sign-in or sign-up, a new Identity Platform ID token and refresh token are issued for the user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<p class="toc_element">
  <code><a href="#signInWithEmailLink">signInWithEmailLink(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Signs in or signs up a user with a out-of-band code from an email link. If a user does not exist with the given email address, a user record will be created. If the sign-in succeeds, an Identity Platform ID and refresh token are issued for the authenticated user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<p class="toc_element">
  <code><a href="#signInWithGameCenter">signInWithGameCenter(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Signs in or signs up a user with iOS Game Center credentials. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. The bundle ID is required in the request header as `x-ios-bundle-identifier`. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project. Apple has [deprecated the `playerID` field](https://developer.apple.com/documentation/gamekit/gkplayer/1521127-playerid/). The Apple platform Firebase SDK will use `gamePlayerID` and `teamPlayerID` from version 10.5.0 and onwards. Upgrading to SDK version 10.5.0 or later updates existing integrations that use `playerID` to instead use `gamePlayerID` and `teamPlayerID`. When making calls to `signInWithGameCenter`, you must include `playerID` along with the new fields `gamePlayerID` and `teamPlayerID` to successfully identify all existing users. Upgrading existing Game Center sign in integrations to SDK version 10.5.0 or later is irreversible.</p>
<p class="toc_element">
  <code><a href="#signInWithIdp">signInWithIdp(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Signs in or signs up a user using credentials from an Identity Provider (IdP). This is done by manually providing an IdP credential, or by providing the authorization response obtained via the authorization request from CreateAuthUri. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. A new Identity Platform user account will be created if the user has not previously signed in to the IdP with the same account. In addition, when the "One account per email address" setting is enabled, there should not be an existing Identity Platform user account with the same email address for a new user account to be created. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<p class="toc_element">
  <code><a href="#signInWithPassword">signInWithPassword(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Signs in a user with email and password. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<p class="toc_element">
  <code><a href="#signInWithPhoneNumber">signInWithPhoneNumber(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Completes a phone number authentication attempt. If a user already exists with the given phone number, an ID token is minted for that user. Otherwise, a new user is created and associated with the phone number. This method may also be used to link a phone number to an existing user. To localize the text of the SMS sent to the user, set the HTTP header `X-Firebase-Locale` to the language code that corresponds with the user's locale. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<p class="toc_element">
  <code><a href="#signUp">signUp(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<p class="toc_element">
  <code><a href="#update">update(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.</p>
<p class="toc_element">
  <code><a href="#verifyIosClient">verifyIosClient(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Verifies an iOS client is a real iOS device. If the request is valid, a receipt will be sent in the response and a secret will be sent via Apple Push Notification Service. The client should send both of them back to certain Identity Platform APIs in a later call (for example, /accounts:sendVerificationCode), in order to verify the client. The bundle ID is required in the request header as `x-ios-bundle-identifier`. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="createAuthUri">createAuthUri(body=None, x__xgafv=None)</code>
  <pre>If an email identifier is specified, checks and returns if any user account is registered with the email. If there is a registered account, fetches all providers associated with the account&#x27;s email. If the provider ID of an Identity Provider (IdP) is specified, creates an authorization URI for the IdP. The user can be directed to this URI to sign in with the IdP. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for CreateAuthUri.
  &quot;appId&quot;: &quot;A String&quot;,
  &quot;authFlowType&quot;: &quot;A String&quot;, # Used for the Google provider. The type of the authentication flow to be used. If present, this should be `CODE_FLOW` to specify the authorization code flow. Otherwise, the default ID Token flow will be used.
  &quot;context&quot;: &quot;A String&quot;, # An opaque string used to maintain contextual information between the authentication request and the callback from the IdP.
  &quot;continueUri&quot;: &quot;A String&quot;, # A valid URL for the IdP to redirect the user back to. The URL cannot contain fragments or the reserved `state` query parameter.
  &quot;customParameter&quot;: { # Additional customized query parameters to be added to the authorization URI. The following parameters are reserved and cannot be added: `client_id`, `response_type`, `scope`, `redirect_uri`, `state`. For the Microsoft provider, the Azure AD tenant to sign-in to can be specified in the `tenant` custom parameter.
    &quot;a_key&quot;: &quot;A String&quot;,
  },
  &quot;hostedDomain&quot;: &quot;A String&quot;, # Used for the Google provider. The G Suite hosted domain of the user in order to restrict sign-in to users at that domain.
  &quot;identifier&quot;: &quot;A String&quot;, # The email identifier of the user account to fetch associated providers for. At least one of the fields `identifier` and `provider_id` must be set. The length of the email address should be less than 256 characters and in the format of `name@domain.tld`. The email address should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production.
  &quot;oauthConsumerKey&quot;: &quot;A String&quot;,
  &quot;oauthScope&quot;: &quot;A String&quot;, # Additional space-delimited OAuth 2.0 scopes specifying the scope of the authentication request with the IdP. Used for OAuth 2.0 IdPs. For the Google provider, the authorization code flow will be used if this field is set.
  &quot;openidRealm&quot;: &quot;A String&quot;,
  &quot;otaApp&quot;: &quot;A String&quot;,
  &quot;providerId&quot;: &quot;A String&quot;, # The provider ID of the IdP for the user to sign in with. This should be a provider ID enabled for sign-in, which is either from the list of [default supported IdPs](https://cloud.google.com/identity-platform/docs/reference/rest/v2/defaultSupportedIdps/list), or of the format `oidc.*` or `saml.*`. Some examples are `google.com`, `facebook.com`, `oidc.testapp`, and `saml.testapp`. At least one of the fields `identifier` and `provider_id` must be set.
  &quot;sessionId&quot;: &quot;A String&quot;, # A session ID that can be verified against in SignInWithIdp to prevent session fixation attacks. If absent, a random string will be generated and returned as the session ID.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant to create an authorization URI or lookup an email identifier for. If not set, the operation will be performed in the default Identity Platform instance in the project.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for CreateAuthUri.
  &quot;allProviders&quot;: [
    &quot;A String&quot;,
  ],
  &quot;authUri&quot;: &quot;A String&quot;, # The authorization URI for the requested provider. Present only when a provider ID is set in the request.
  &quot;captchaRequired&quot;: True or False, # Whether a CAPTCHA is needed because there have been too many failed login attempts by the user. Present only when a registered email identifier is set in the request.
  &quot;forExistingProvider&quot;: True or False, # Whether the user has previously signed in with the provider ID in the request. Present only when a registered email identifier is set in the request.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;providerId&quot;: &quot;A String&quot;, # The provider ID from the request, if provided.
  &quot;registered&quot;: True or False, # Whether the email identifier represents an existing account. Present only when an email identifier is set in the request.
  &quot;sessionId&quot;: &quot;A String&quot;, # The session ID from the request, or a random string generated by CreateAuthUri if absent. It is used to prevent session fixation attacks.
  &quot;signinMethods&quot;: [ # The list of sign-in methods that the user has previously used. Each element is one of `password`, `emailLink`, or the provider ID of an IdP. Present only when a registered email identifier is set in the request. If [email enumeration protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, this method returns an empty list.
    &quot;A String&quot;,
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="delete">delete(body=None, x__xgafv=None)</code>
  <pre>Deletes a user&#x27;s account.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for DeleteAccount.
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;idToken&quot;: &quot;A String&quot;, # The Identity Platform ID token of the account to delete. Require to be specified for requests from end users that lack Google OAuth 2.0 credential. Authenticated requests bearing a Google OAuth2 credential with proper permissions may pass local_id to specify the account to delete alternatively.
  &quot;localId&quot;: &quot;A String&quot;, # The ID of user account to delete. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). Requests from users lacking the credential should pass an ID token instead.
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify local_id of an account.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the tenant that the account belongs to, if applicable. Only require to be specified for authenticated requests bearing a Google OAuth 2.0 credential that specify local_id of an account that belongs to an Identity Platform tenant.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for DeleteAccount.
  &quot;kind&quot;: &quot;A String&quot;,
}</pre>
</div>

<div class="method">
    <code class="details" id="issueSamlResponse">issueSamlResponse(body=None, x__xgafv=None)</code>
  <pre>Experimental

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for IssueSamlResponse.
  &quot;idToken&quot;: &quot;A String&quot;, # The Identity Platform ID token. It will be verified and then converted to a new SAMLResponse.
  &quot;rpId&quot;: &quot;A String&quot;, # Relying Party identifier, which is the audience of issued SAMLResponse.
  &quot;samlAppEntityId&quot;: &quot;A String&quot;, # SAML app entity id specified in Google Admin Console for each app. If developers want to redirect to a third-party app rather than a G Suite app, they&#x27;ll probably they need this. When it&#x27;s used, we&#x27;ll return a RelayState. This includes a SAMLRequest, which can be used to trigger a SP-initiated SAML flow to redirect to the real app.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for IssueSamlResponse request.
  &quot;acsEndpoint&quot;: &quot;A String&quot;, # The ACS endpoint which consumes the returned SAMLResponse.
  &quot;email&quot;: &quot;A String&quot;, # Email of the user.
  &quot;firstName&quot;: &quot;A String&quot;, # First name of the user.
  &quot;isNewUser&quot;: True or False, # Whether the logged in user was created by this request.
  &quot;lastName&quot;: &quot;A String&quot;, # Last name of the user.
  &quot;relayState&quot;: &quot;A String&quot;, # Generated RelayState.
  &quot;samlResponse&quot;: &quot;A String&quot;, # Signed SAMLResponse created for the Relying Party.
}</pre>
</div>

<div class="method">
    <code class="details" id="lookup">lookup(body=None, x__xgafv=None)</code>
  <pre>Gets account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for GetAccountInfo.
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;email&quot;: [ # The email address of one or more accounts to fetch. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. Should only be specified by authenticated requests from a developer.
    &quot;A String&quot;,
  ],
  &quot;federatedUserId&quot;: [
    { # Federated user identifier at an Identity Provider.
      &quot;providerId&quot;: &quot;A String&quot;, # The ID of supported identity providers. This should be a provider ID enabled for sign-in, which is either from the list of [default supported IdPs](https://cloud.google.com/identity-platform/docs/reference/rest/v2/defaultSupportedIdps/list), or of the format `oidc.*` or `saml.*`. Some examples are `google.com`, `facebook.com`, `oidc.testapp`, and `saml.testapp`.
      &quot;rawId&quot;: &quot;A String&quot;, # The user ID of the account at the third-party Identity Provider specified by `provider_id`.
    },
  ],
  &quot;idToken&quot;: &quot;A String&quot;, # The Identity Platform ID token of the account to fetch. Require to be specified for requests from end users.
  &quot;initialEmail&quot;: [ # The initial email of one or more accounts to fetch. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. Should only be specified by authenticated requests from a developer.
    &quot;A String&quot;,
  ],
  &quot;localId&quot;: [ # The ID of one or more accounts to fetch. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
    &quot;A String&quot;,
  ],
  &quot;phoneNumber&quot;: [ # The phone number of one or more accounts to fetch. Should only be specified by authenticated requests from a developer and should be in E.164 format, for example, +15555555555.
    &quot;A String&quot;,
  ],
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The ID of the Google Cloud project that the account or the Identity Platform tenant specified by `tenant_id` belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the tenant that the account belongs to. Should only be specified by authenticated requests from a developer.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for GetAccountInfo.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;users&quot;: [ # The information of specific user account(s) matching the parameters in the request.
    { # An Identity Platform account&#x27;s information.
      &quot;createdAt&quot;: &quot;A String&quot;, # The time, in milliseconds from epoch, when the account was created.
      &quot;customAttributes&quot;: &quot;A String&quot;, # Custom claims to be added to any ID tokens minted for the account. Should be at most 1,000 characters in length and in valid JSON format.
      &quot;customAuth&quot;: True or False, # Output only. Whether this account has been authenticated using SignInWithCustomToken.
      &quot;dateOfBirth&quot;: &quot;A String&quot;, # Output only. The date of birth set for the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;disabled&quot;: True or False, # Whether the account is disabled. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions.
      &quot;displayName&quot;: &quot;A String&quot;, # The display name of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address. The length of the email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;emailLinkSignin&quot;: True or False, # Output only. Whether the account can authenticate with email link.
      &quot;emailVerified&quot;: True or False, # Whether the account&#x27;s email address has been verified.
      &quot;initialEmail&quot;: &quot;A String&quot;, # The first email address associated with this account. The account&#x27;s initial email cannot be changed once set and is used to recover access to this account if lost via the RECOVER_EMAIL flow in GetOobCode. Should match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;language&quot;: &quot;A String&quot;, # Output only. The language preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;lastLoginAt&quot;: &quot;A String&quot;, # The last time, in milliseconds from epoch, this account was logged into.
      &quot;lastRefreshAt&quot;: &quot;A String&quot;, # Timestamp when an ID token was last minted for this account.
      &quot;localId&quot;: &quot;A String&quot;, # Immutable. The unique ID of the account.
      &quot;mfaInfo&quot;: [ # Information on which multi-factor authentication providers are enabled for this account.
        { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
          &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
          &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
            &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
          },
          &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
          &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
          &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
          &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
          },
          &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
        },
      ],
      &quot;passwordHash&quot;: &quot;A String&quot;, # The account&#x27;s hashed password. Only accessible by requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
      &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z, when the account&#x27;s password was last updated.
      &quot;phoneNumber&quot;: &quot;A String&quot;, # The account&#x27;s phone number.
      &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the account&#x27;s profile photo. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;providerUserInfo&quot;: [ # Information about the user as provided by various Identity Providers.
        { # Information about the user as provided by various Identity Providers.
          &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
          &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
          &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
          &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
          &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
          &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
          &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
          &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
        },
      ],
      &quot;rawPassword&quot;: &quot;A String&quot;, # Input only. Plain text password used to update a account&#x27;s password. This field is only ever used as input in a request. Identity Platform uses cryptographically secure hashing when managing passwords and will never store or transmit a user&#x27;s password in plain text.
      &quot;salt&quot;: &quot;A String&quot;, # The account&#x27;s password salt. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
      &quot;screenName&quot;: &quot;A String&quot;, # Output only. This account&#x27;s screen name at Twitter or login name at GitHub.
      &quot;tenantId&quot;: &quot;A String&quot;, # ID of the tenant this account belongs to. Only set if this account belongs to a tenant.
      &quot;timeZone&quot;: &quot;A String&quot;, # Output only. The time zone preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;validSince&quot;: &quot;A String&quot;, # Oldest timestamp, in seconds since epoch, that an ID token should be considered valid. All ID tokens issued before this time are considered invalid.
      &quot;version&quot;: 42, # The version of the account&#x27;s password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="resetPassword">resetPassword(body=None, x__xgafv=None)</code>
  <pre>Resets the password of an account either using an out-of-band code generated by sendOobCode or by specifying the email and password of the account to be modified. Can also check the purpose of an out-of-band code without consuming it.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for ResetPassword.
  &quot;email&quot;: &quot;A String&quot;, # Optional. The email of the account to be modified. Specify this and the old password in order to change an account&#x27;s password without using an out-of-band code.
  &quot;newPassword&quot;: &quot;A String&quot;, # The new password to be set for this account. Specifying this field will result in a change to the account and consume the out-of-band code if one was specified and it was of type PASSWORD_RESET.
  &quot;oldPassword&quot;: &quot;A String&quot;, # The current password of the account to be modified. Specify this and email to change an account&#x27;s password without using an out-of-band code.
  &quot;oobCode&quot;: &quot;A String&quot;, # An out-of-band (OOB) code generated by GetOobCode request. Specify only this parameter (or only this parameter and a tenant ID) to get the out-of-band code&#x27;s type in the response without mutating the account&#x27;s state. Only a PASSWORD_RESET out-of-band code can be consumed via this method.
  &quot;tenantId&quot;: &quot;A String&quot;, # Optional. The tenant ID of the Identity Platform tenant the account belongs to.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ResetPassword.
  &quot;email&quot;: &quot;A String&quot;, # The email associated with the out-of-band code that was used.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;mfaInfo&quot;: { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
    &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
    &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
      &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
    },
    &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
    &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
    &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
    &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
    },
    &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
  },
  &quot;newEmail&quot;: &quot;A String&quot;,
  &quot;requestType&quot;: &quot;A String&quot;,
}</pre>
</div>

<div class="method">
    <code class="details" id="sendOobCode">sendOobCode(body=None, x__xgafv=None)</code>
  <pre>Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for GetOobCode.
  &quot;androidInstallApp&quot;: True or False, # If an associated android app can handle the OOB code, whether or not to install the android app on the device where the link is opened if the app is not already installed.
  &quot;androidMinimumVersion&quot;: &quot;A String&quot;, # If an associated android app can handle the OOB code, the minimum version of the app. If the version on the device is lower than this version then the user is taken to Google Play Store to upgrade the app.
  &quot;androidPackageName&quot;: &quot;A String&quot;, # If an associated android app can handle the OOB code, the Android package name of the android app that will handle the callback when this OOB code is used. This will allow the correct app to open if it is already installed, or allow Google Play Store to open to the correct app if it is not yet installed.
  &quot;canHandleCodeInApp&quot;: True or False, # When set to true, the OOB code link will be be sent as a Universal Link or an Android App Link and will be opened by the corresponding app if installed. If not set, or set to false, the OOB code will be sent to the web widget first and then on continue will redirect to the app if installed.
  &quot;captchaResp&quot;: &quot;A String&quot;, # For a PASSWORD_RESET request, a reCaptcha response is required when the system detects possible abuse activity. In those cases, this is the response from the reCaptcha challenge used to verify the caller.
  &quot;challenge&quot;: &quot;A String&quot;,
  &quot;clientType&quot;: &quot;A String&quot;, # The client type: web, Android or iOS. Required when reCAPTCHA Enterprise protection is enabled.
  &quot;continueUrl&quot;: &quot;A String&quot;, # The Url to continue after user clicks the link sent in email. This is the url that will allow the web widget to handle the OOB code.
  &quot;dynamicLinkDomain&quot;: &quot;A String&quot;, # In order to ensure that the url used can be easily opened up in iOS or android, we create a [Firebase Dynamic Link](https://firebase.google.com/docs/dynamic-links). Most Identity Platform projects will only have one Dynamic Link domain enabled, and can leave this field blank. This field contains a specified Dynamic Link domain for projects that have multiple enabled.
  &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address to send the OOB code to, and generally the email address of the account that needs to be updated. Required for PASSWORD_RESET, EMAIL_SIGNIN, and VERIFY_EMAIL. Only required for VERIFY_AND_CHANGE_EMAIL requests when return_oob_link is set to true. In this case, it is the original email of the user.
  &quot;iOSAppStoreId&quot;: &quot;A String&quot;, # If an associated iOS app can handle the OOB code, the App Store id of this app. This will allow App Store to open to the correct app if the app is not yet installed.
  &quot;iOSBundleId&quot;: &quot;A String&quot;, # If an associated iOS app can handle the OOB code, the iOS bundle id of this app. This will allow the correct app to open if it is already installed.
  &quot;idToken&quot;: &quot;A String&quot;, # An ID token for the account. It is required for VERIFY_AND_CHANGE_EMAIL and VERIFY_EMAIL requests unless return_oob_link is set to true.
  &quot;linkDomain&quot;: &quot;A String&quot;, # Optional. In order to ensure that the url used can be easily opened in iOS or Android, we create a Hosting link &#x27;/__/auth/links&#x27;. This optional field contains the domain to use when constructing a Hosting link. If not set, &#x27;.firebaseapp.com&#x27; domain will be used.
  &quot;newEmail&quot;: &quot;A String&quot;, # The email address the account is being updated to. Required only for VERIFY_AND_CHANGE_EMAIL requests.
  &quot;recaptchaVersion&quot;: &quot;A String&quot;, # The reCAPTCHA version of the reCAPTCHA token in the captcha_response.
  &quot;requestType&quot;: &quot;A String&quot;, # Required. The type of out-of-band (OOB) code to send. Depending on this value, other fields in this request will be required and/or have different meanings. There are 4 different OOB codes that can be sent: * PASSWORD_RESET * EMAIL_SIGNIN * VERIFY_EMAIL * VERIFY_AND_CHANGE_EMAIL
  &quot;returnOobLink&quot;: True or False, # Whether the confirmation link containing the OOB code should be returned in the response (no email is sent). Used when a developer wants to construct the email template and send it on their own. By default this is false; to specify this field, and to set it to true, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control)
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The Project ID of the Identity Platform project which the account belongs to. To specify this field, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
  &quot;tenantId&quot;: &quot;A String&quot;, # The tenant ID of the Identity Platform tenant the account belongs to.
  &quot;userIp&quot;: &quot;A String&quot;, # The IP address of the caller. Required only for PASSWORD_RESET requests.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for GetOobCode.
  &quot;email&quot;: &quot;A String&quot;, # If return_oob_link is false in the request, the email address the verification was sent to.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;oobCode&quot;: &quot;A String&quot;, # If return_oob_link is true in the request, the OOB code to send.
  &quot;oobLink&quot;: &quot;A String&quot;, # If return_oob_link is true in the request, the OOB link to be sent to the user. This returns the constructed link including [Firebase Dynamic Link](https://firebase.google.com/docs/dynamic-links) related parameters.
}</pre>
</div>

<div class="method">
    <code class="details" id="sendVerificationCode">sendVerificationCode(body=None, x__xgafv=None)</code>
  <pre>Sends a SMS verification code for phone number sign-in. To localize the text of the SMS sent to the user, set the HTTP header `X-Firebase-Locale` to the language code that corresponds with the user&#x27;s locale. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SendVerificationCode. &#x27;captcha_response&#x27; is required when reCAPTCHA enterprise is enabled, or otherwise at least one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, or `play_integrity_token` must be specified to verify the verification code is being sent on behalf of a real app and not an emulator.
  &quot;autoRetrievalInfo&quot;: { # The information required to auto-retrieve an SMS. # Android only. Used by Google Play Services to identify the app for auto-retrieval.
    &quot;appSignatureHash&quot;: &quot;A String&quot;, # The Android app&#x27;s signature hash for Google Play Service&#x27;s SMS Retriever API.
  },
  &quot;captchaResponse&quot;: &quot;A String&quot;, # Optional. The reCAPTCHA Enterprise token provided by the reCAPTCHA client-side integration. Required when reCAPTCHA enterprise is enabled.
  &quot;clientType&quot;: &quot;A String&quot;, # Optional. The client type, web, android or ios. Required when reCAPTCHA Enterprise is enabled.
  &quot;iosReceipt&quot;: &quot;A String&quot;, # Receipt of successful iOS app token validation. At least one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, or `play_integrity_token` must be specified to verify the verification code is being sent on behalf of a real app and not an emulator, if &#x27;captcha_response&#x27; is not used (reCAPTCHA enterprise is not enabled). This should come from the response of verifyIosClient. If present, the caller should also provide the `ios_secret`, as well as a bundle ID in the `x-ios-bundle-identifier` header, which must match the bundle ID from the verifyIosClient request.
  &quot;iosSecret&quot;: &quot;A String&quot;, # Secret delivered to iOS app as a push notification. Should be passed with an `ios_receipt` as well as the `x-ios-bundle-identifier` header.
  &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number to send the verification code to in E.164 format.
  &quot;playIntegrityToken&quot;: &quot;A String&quot;, # Android only. Used to assert application identity in place of a recaptcha token (and safety_net_token). At least one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, , or `play_integrity_token` must be specified to verify the verification code is being sent on behalf of a real app and not an emulator, if &#x27;captcha_response&#x27; is not used (reCAPTCHA enterprise is not enabled). A Play Integrity Token can be generated via the [PlayIntegrity API](https://developer.android.com/google/play/integrity) with applying SHA256 to the `phone_number` field as the nonce.
  &quot;recaptchaToken&quot;: &quot;A String&quot;, # Recaptcha token for app verification. At least one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, or `play_integrity_token` must be specified to verify the verification code is being sent on behalf of a real app and not an emulator, if &#x27;captcha_response&#x27; is not used (reCAPTCHA enterprise is not enabled). The recaptcha should be generated by calling getRecaptchaParams and the recaptcha token will be generated on user completion of the recaptcha challenge.
  &quot;recaptchaVersion&quot;: &quot;A String&quot;, # Optional. The reCAPTCHA version of the reCAPTCHA token in the captcha_response. Required when reCAPTCHA Enterprise is enabled.
  &quot;safetyNetToken&quot;: &quot;A String&quot;, # Android only. Safety Net has been deprecated. Please use play_integrity_token instead.
  &quot;tenantId&quot;: &quot;A String&quot;, # Tenant ID of the Identity Platform tenant the user is signing in to.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SendVerificationCode.
  &quot;sessionInfo&quot;: &quot;A String&quot;, # Encrypted session information. This can be used in signInWithPhoneNumber to authenticate the phone number.
}</pre>
</div>

<div class="method">
    <code class="details" id="signInWithCustomToken">signInWithCustomToken(body=None, x__xgafv=None)</code>
  <pre>Signs in or signs up a user by exchanging a custom Auth token. Upon a successful sign-in or sign-up, a new Identity Platform ID token and refresh token are issued for the user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SignInWithCustomToken.
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;instanceId&quot;: &quot;A String&quot;,
  &quot;returnSecureToken&quot;: True or False, # Should always be true.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant the user is signing in to. If present, the ID should match the tenant_id in the token.
  &quot;token&quot;: &quot;A String&quot;, # Required. The custom Auth token asserted by the developer. The token should be a [JSON Web Token (JWT)](https://tools.ietf.org/html/rfc7519) that includes the claims listed in the [API reference](https://cloud.google.com/identity-platform/docs/reference/rest/client/) under the &quot;Custom Token Claims&quot; section.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SignInWithCustomToken.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the ID token expires.
  &quot;idToken&quot;: &quot;A String&quot;, # An Identity Platform ID token for the authenticated user.
  &quot;isNewUser&quot;: True or False, # Whether the authenticated user was created by this request.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;refreshToken&quot;: &quot;A String&quot;, # An Identity Platform refresh token for the authenticated user.
}</pre>
</div>

<div class="method">
    <code class="details" id="signInWithEmailLink">signInWithEmailLink(body=None, x__xgafv=None)</code>
  <pre>Signs in or signs up a user with a out-of-band code from an email link. If a user does not exist with the given email address, a user record will be created. If the sign-in succeeds, an Identity Platform ID and refresh token are issued for the authenticated user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SignInWithEmailLink
  &quot;email&quot;: &quot;A String&quot;, # Required. The email address the sign-in link was sent to. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production.
  &quot;idToken&quot;: &quot;A String&quot;, # A valid ID token for an Identity Platform account. If passed, this request will link the email address to the user represented by this ID token and enable sign-in with email link on the account for the future.
  &quot;oobCode&quot;: &quot;A String&quot;, # Required. The out-of-band code from the email link.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SignInWithEmailLink.
  &quot;email&quot;: &quot;A String&quot;, # The email the user signed in with. Always present in the response.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the ID token expires.
  &quot;idToken&quot;: &quot;A String&quot;, # An Identity Platform ID token for the authenticated user.
  &quot;isNewUser&quot;: True or False, # Whether the authenticated user was created by this request.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the authenticated user. Always present in the response.
  &quot;mfaInfo&quot;: [ # Info on which multi-factor authentication providers are enabled. Present if the user needs to complete the sign-in using multi-factor authentication.
    { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
      &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
      &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
        &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
      },
      &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
      &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
      &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
      &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
      },
      &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
    },
  ],
  &quot;mfaPendingCredential&quot;: &quot;A String&quot;, # An opaque string that functions as proof that the user has successfully passed the first factor check.
  &quot;refreshToken&quot;: &quot;A String&quot;, # Refresh token for the authenticated user.
}</pre>
</div>

<div class="method">
    <code class="details" id="signInWithGameCenter">signInWithGameCenter(body=None, x__xgafv=None)</code>
  <pre>Signs in or signs up a user with iOS Game Center credentials. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. The bundle ID is required in the request header as `x-ios-bundle-identifier`. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project. Apple has [deprecated the `playerID` field](https://developer.apple.com/documentation/gamekit/gkplayer/1521127-playerid/). The Apple platform Firebase SDK will use `gamePlayerID` and `teamPlayerID` from version 10.5.0 and onwards. Upgrading to SDK version 10.5.0 or later updates existing integrations that use `playerID` to instead use `gamePlayerID` and `teamPlayerID`. When making calls to `signInWithGameCenter`, you must include `playerID` along with the new fields `gamePlayerID` and `teamPlayerID` to successfully identify all existing users. Upgrading existing Game Center sign in integrations to SDK version 10.5.0 or later is irreversible.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SignInWithGameCenter
  &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s Game Center display name.
  &quot;gamePlayerId&quot;: &quot;A String&quot;, # The user&#x27;s Game Center game player ID. A unique identifier for a player of the game. https://developer.apple.com/documentation/gamekit/gkplayer/3113960-gameplayerid
  &quot;idToken&quot;: &quot;A String&quot;, # A valid ID token for an Identity Platform account. If present, this request will link the Game Center player ID to the account represented by this ID token.
  &quot;playerId&quot;: &quot;A String&quot;, # Required. The user&#x27;s Game Center player ID. Deprecated by Apple. Pass `playerID` along with `gamePlayerID` and `teamPlayerID` to initiate the migration of a user&#x27;s Game Center player ID to `gamePlayerID`.
  &quot;publicKeyUrl&quot;: &quot;A String&quot;, # Required. The URL to fetch the Apple public key in order to verify the given signature is signed by Apple.
  &quot;salt&quot;: &quot;A String&quot;, # Required. A random string used to generate the given signature.
  &quot;signature&quot;: &quot;A String&quot;, # Required. The verification signature data generated by Apple.
  &quot;teamPlayerId&quot;: &quot;A String&quot;, # The user&#x27;s Game Center team player ID. A unique identifier for a player of all the games that you distribute using your developer account. https://developer.apple.com/documentation/gamekit/gkplayer/3174857-teamplayerid
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant the user is signing in to.
  &quot;timestamp&quot;: &quot;A String&quot;, # Required. The time when the signature was created by Apple, in milliseconds since the epoch.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SignInWithGameCenter
  &quot;displayName&quot;: &quot;A String&quot;, # Display name of the authenticated user.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the ID token expires.
  &quot;gamePlayerId&quot;: &quot;A String&quot;, # The user&#x27;s Game Center game player ID. A unique identifier for a player of the game. https://developer.apple.com/documentation/gamekit/gkplayer/3113960-gameplayerid
  &quot;idToken&quot;: &quot;A String&quot;, # An Identity Platform ID token for the authenticated user.
  &quot;isNewUser&quot;: True or False, # Whether the logged in user was created by this request.
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the authenticated user. Always present in the response.
  &quot;playerId&quot;: &quot;A String&quot;, # The user&#x27;s Game Center player ID. Pass `playerID` along with `gamePlayerID` and `teamPlayerID` to initiate the migration of a user&#x27;s Game Center player ID to `gamePlayerID`.
  &quot;refreshToken&quot;: &quot;A String&quot;, # An Identity Platform refresh token for the authenticated user.
  &quot;teamPlayerId&quot;: &quot;A String&quot;, # The user&#x27;s Game Center team player ID. A unique identifier for a player of all the games that you distribute using your developer account. https://developer.apple.com/documentation/gamekit/gkplayer/3174857-teamplayerid
}</pre>
</div>

<div class="method">
    <code class="details" id="signInWithIdp">signInWithIdp(body=None, x__xgafv=None)</code>
  <pre>Signs in or signs up a user using credentials from an Identity Provider (IdP). This is done by manually providing an IdP credential, or by providing the authorization response obtained via the authorization request from CreateAuthUri. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. A new Identity Platform user account will be created if the user has not previously signed in to the IdP with the same account. In addition, when the &quot;One account per email address&quot; setting is enabled, there should not be an existing Identity Platform user account with the same email address for a new user account to be created. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SignInWithIdp.
  &quot;autoCreate&quot;: True or False,
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;idToken&quot;: &quot;A String&quot;, # A valid Identity Platform ID token. If passed, the user&#x27;s account at the IdP will be linked to the account represented by this ID token.
  &quot;pendingIdToken&quot;: &quot;A String&quot;,
  &quot;pendingToken&quot;: &quot;A String&quot;, # An opaque string from a previous SignInWithIdp response. If set, it can be used to repeat the sign-in operation from the previous SignInWithIdp operation. This may be present if the user needs to confirm their account information as part of a previous federated login attempt, or perform account linking.
  &quot;postBody&quot;: &quot;A String&quot;, # If the user is signing in with an authorization response obtained via a previous CreateAuthUri authorization request, this is the body of the HTTP POST callback from the IdP, if present. Otherwise, if the user is signing in with a manually provided IdP credential, this should be a URL-encoded form that contains the credential (e.g. an ID token or access token for OAuth 2.0 IdPs) and the provider ID of the IdP that issued the credential. For example, if the user is signing in to the Google provider using a Google ID token, this should be set to id_token`=[GOOGLE_ID_TOKEN]&amp;providerId=google.com`, where `[GOOGLE_ID_TOKEN]` should be replaced with the Google ID token. If the user is signing in to the Facebook provider using a Facebook authentication token, this should be set to id_token`=[FACEBOOK_AUTHENTICATION_TOKEN]&amp;providerId=facebook. com&amp;nonce= [NONCE]`, where `[FACEBOOK_AUTHENTICATION_TOKEN]` should be replaced with the Facebook authentication token. Nonce is required for validating the token. The request will fail if no nonce is provided. If the user is signing in to the Facebook provider using a Facebook access token, this should be set to access_token`=[FACEBOOK_ACCESS_TOKEN]&amp;providerId=facebook. com`, where `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook access token. If the user is signing in to the Twitter provider using a Twitter OAuth 1.0 credential, this should be set to access_token`=[TWITTER_ACCESS_TOKEN]&amp;oauth_token_secret= [TWITTER_TOKEN_SECRET]&amp;providerId=twitter.com`, where `[TWITTER_ACCESS_TOKEN]` and `[TWITTER_TOKEN_SECRET]` should be replaced with the Twitter OAuth access token and Twitter OAuth token secret respectively.
  &quot;requestUri&quot;: &quot;A String&quot;, # Required. The URL to which the IdP redirects the user back. This can be set to `http://localhost` if the user is signing in with a manually provided IdP credential.
  &quot;returnIdpCredential&quot;: True or False, # Whether or not to return OAuth credentials from the IdP on the following errors: `FEDERATED_USER_ID_ALREADY_LINKED` and `EMAIL_EXISTS`.
  &quot;returnRefreshToken&quot;: True or False, # Whether or not to return the OAuth refresh token from the IdP, if available.
  &quot;returnSecureToken&quot;: True or False, # Should always be true.
  &quot;sessionId&quot;: &quot;A String&quot;, # The session ID returned from a previous CreateAuthUri call. This field is verified against that session ID to prevent session fixation attacks. Required if the user is signing in with an authorization response from a previous CreateAuthUri authorization request.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SignInWithIdp.
  &quot;context&quot;: &quot;A String&quot;, # The opaque string set in CreateAuthUri that is used to maintain contextual information between the authentication request and the callback from the IdP.
  &quot;dateOfBirth&quot;: &quot;A String&quot;, # The date of birth for the user&#x27;s account at the IdP.
  &quot;displayName&quot;: &quot;A String&quot;, # The display name for the user&#x27;s account at the IdP.
  &quot;email&quot;: &quot;A String&quot;, # The email address of the user&#x27;s account at the IdP.
  &quot;emailRecycled&quot;: True or False, # Whether or not there is an existing Identity Platform user account with the same email address but linked to a different account at the same IdP. Only present if the &quot;One account per email address&quot; setting is enabled and the email address at the IdP is verified.
  &quot;emailVerified&quot;: True or False, # Whether the user account&#x27;s email address is verified.
  &quot;errorMessage&quot;: &quot;A String&quot;, # The error message returned if `return_idp_credential` is set to `true` and either the `FEDERATED_USER_ID_ALREADY_LINKED` or `EMAIL_EXISTS` error is encountered. This field&#x27;s value is either `FEDERATED_USER_ID_ALREADY_LINKED` or `EMAIL_EXISTS`.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the Identity Platform ID token expires.
  &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s account ID at the IdP. Always present in the response.
  &quot;firstName&quot;: &quot;A String&quot;, # The first name for the user&#x27;s account at the IdP.
  &quot;fullName&quot;: &quot;A String&quot;, # The full name for the user&#x27;s account at the IdP.
  &quot;idToken&quot;: &quot;A String&quot;, # An Identity Platform ID token for the authenticated user.
  &quot;inputEmail&quot;: &quot;A String&quot;,
  &quot;isNewUser&quot;: True or False, # Whether or not a new Identity Platform account was created for the authenticated user.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;language&quot;: &quot;A String&quot;, # The language preference for the user&#x27;s account at the IdP.
  &quot;lastName&quot;: &quot;A String&quot;, # The last name for the user&#x27;s account at the IdP.
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the authenticated Identity Platform user. Always present in the response.
  &quot;mfaInfo&quot;: [ # Info on which multi-factor authentication providers are enabled for the account. Present if the user needs to complete the sign-in using multi-factor authentication.
    { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
      &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
      &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
        &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
      },
      &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
      &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
      &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
      &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
      },
      &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
    },
  ],
  &quot;mfaPendingCredential&quot;: &quot;A String&quot;, # An opaque string that functions as proof that the user has successfully passed the first factor authentication.
  &quot;needConfirmation&quot;: True or False, # Whether or not there is an existing Identity Platform user account with the same email address as the current account signed in at the IdP, and the account&#x27;s email address is not verified at the IdP. The user will need to sign in to the existing Identity Platform account and then link the current credential from the IdP to it. Only present if the &quot;One account per email address&quot; setting is enabled.
  &quot;needEmail&quot;: True or False,
  &quot;nickName&quot;: &quot;A String&quot;, # The nickname for the user&#x27;s account at the IdP.
  &quot;oauthAccessToken&quot;: &quot;A String&quot;, # The OAuth access token from the IdP, if available.
  &quot;oauthAuthorizationCode&quot;: &quot;A String&quot;, # The OAuth 2.0 authorization code, if available. Only present for the Google provider.
  &quot;oauthExpireIn&quot;: 42, # The number of seconds until the OAuth access token from the IdP expires.
  &quot;oauthIdToken&quot;: &quot;A String&quot;, # The OpenID Connect ID token from the IdP, if available.
  &quot;oauthRefreshToken&quot;: &quot;A String&quot;, # The OAuth 2.0 refresh token from the IdP, if available and `return_refresh_token` is set to `true`.
  &quot;oauthTokenSecret&quot;: &quot;A String&quot;, # The OAuth 1.0 token secret from the IdP, if available. Only present for the Twitter provider.
  &quot;originalEmail&quot;: &quot;A String&quot;, # The main (top-level) email address of the user&#x27;s Identity Platform account, if different from the email address at the IdP. Only present if the &quot;One account per email address&quot; setting is enabled.
  &quot;pendingToken&quot;: &quot;A String&quot;, # An opaque string that can be used as a credential from the IdP the user is signing into. The pending token obtained here can be set in a future SignInWithIdp request to sign the same user in with the IdP again.
  &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the user&#x27;s profile picture at the IdP.
  &quot;providerId&quot;: &quot;A String&quot;, # The provider ID of the IdP that the user is signing in to. Always present in the response.
  &quot;rawUserInfo&quot;: &quot;A String&quot;, # The stringified JSON response containing all the data corresponding to the user&#x27;s account at the IdP.
  &quot;refreshToken&quot;: &quot;A String&quot;, # An Identity Platform refresh token for the authenticated user.
  &quot;screenName&quot;: &quot;A String&quot;, # The screen name for the user&#x27;s account at the Twitter IdP or the login name for the user&#x27;s account at the GitHub IdP.
  &quot;tenantId&quot;: &quot;A String&quot;, # The value of the `tenant_id` field in the request.
  &quot;timeZone&quot;: &quot;A String&quot;, # The time zone for the user&#x27;s account at the IdP.
  &quot;verifiedProvider&quot;: [ # A list of provider IDs that the user can sign in to in order to resolve a `need_confirmation` error. Only present if `need_confirmation` is set to `true`.
    &quot;A String&quot;,
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="signInWithPassword">signInWithPassword(body=None, x__xgafv=None)</code>
  <pre>Signs in a user with email and password. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SignInWithPassword.
  &quot;captchaChallenge&quot;: &quot;A String&quot;,
  &quot;captchaResponse&quot;: &quot;A String&quot;, # The reCAPTCHA token provided by the reCAPTCHA client-side integration. reCAPTCHA Enterprise uses it for risk assessment. Required when reCAPTCHA Enterprise is enabled.
  &quot;clientType&quot;: &quot;A String&quot;, # The client type, web, android or ios. Required when reCAPTCHA Enterprise is enabled.
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;email&quot;: &quot;A String&quot;, # Required. The email the user is signing in with. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production.
  &quot;idToken&quot;: &quot;A String&quot;,
  &quot;instanceId&quot;: &quot;A String&quot;,
  &quot;password&quot;: &quot;A String&quot;, # Required. The password the user provides to sign in to the account.
  &quot;pendingIdToken&quot;: &quot;A String&quot;,
  &quot;recaptchaVersion&quot;: &quot;A String&quot;, # The reCAPTCHA version of the reCAPTCHA token in the captcha_response.
  &quot;returnSecureToken&quot;: True or False, # Should always be true.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform instance in the project.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SignInWithPassword.
  &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name stored in the account&#x27;s attributes.
  &quot;email&quot;: &quot;A String&quot;, # The email of the authenticated user. Always present in the response.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the Identity Platform ID token expires.
  &quot;idToken&quot;: &quot;A String&quot;, # An Identity Platform ID token for the authenticated user.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the authenticated user. Always present in the response.
  &quot;mfaInfo&quot;: [ # Info on which multi-factor authentication providers are enabled for the account. Present if the user needs to complete the sign-in using multi-factor authentication.
    { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
      &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
      &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
        &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
      },
      &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
      &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
      &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
      &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
      },
      &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
    },
  ],
  &quot;mfaPendingCredential&quot;: &quot;A String&quot;, # An opaque string that functions as proof that the user has successfully passed the first factor authentication.
  &quot;oauthAccessToken&quot;: &quot;A String&quot;, # The OAuth2 access token.
  &quot;oauthAuthorizationCode&quot;: &quot;A String&quot;,
  &quot;oauthExpireIn&quot;: 42, # The access token expiration time in seconds.
  &quot;profilePicture&quot;: &quot;A String&quot;, # The user&#x27;s profile picture stored in the account&#x27;s attributes.
  &quot;refreshToken&quot;: &quot;A String&quot;, # An Identity Platform refresh token for the authenticated user.
  &quot;registered&quot;: True or False, # Whether the email is for an existing account. Always true.
  &quot;userNotifications&quot;: [ # Warning notifications for the user.
    { # Warning notifications for the user.
      &quot;notificationCode&quot;: &quot;A String&quot;, # Warning notification enum. Can be used for localization.
      &quot;notificationMessage&quot;: &quot;A String&quot;, # Warning notification string. Can be used as fallback.
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="signInWithPhoneNumber">signInWithPhoneNumber(body=None, x__xgafv=None)</code>
  <pre>Completes a phone number authentication attempt. If a user already exists with the given phone number, an ID token is minted for that user. Otherwise, a new user is created and associated with the phone number. This method may also be used to link a phone number to an existing user. To localize the text of the SMS sent to the user, set the HTTP header `X-Firebase-Locale` to the language code that corresponds with the user&#x27;s locale. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SignInWithPhoneNumber.
  &quot;code&quot;: &quot;A String&quot;, # User-entered verification code from an SMS sent to the user&#x27;s phone.
  &quot;idToken&quot;: &quot;A String&quot;, # A valid ID token for an Identity Platform account. If passed, this request will link the phone number to the user represented by this ID token if the phone number is not in use, or will reauthenticate the user if the phone number is already linked to the user.
  &quot;operation&quot;: &quot;A String&quot;,
  &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number to sign in with. This is necessary in the case of uing a temporary proof, in which case it must match the phone number that was authenticated in the request that generated the temporary proof. This field is ignored if a session info is passed.
  &quot;sessionInfo&quot;: &quot;A String&quot;, # Encrypted session information from the response of sendVerificationCode. In the case of authenticating with an SMS code this must be specified, but in the case of using a temporary proof it can be unspecified.
  &quot;temporaryProof&quot;: &quot;A String&quot;, # A proof of the phone number verification, provided from a previous signInWithPhoneNumber request. If this is passed, the caller must also pass in the phone_number field the phone number that was verified in the previous request.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.
  &quot;verificationProof&quot;: &quot;A String&quot;, # Do not use.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SignInWithPhoneNumber.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the ID token expires.
  &quot;idToken&quot;: &quot;A String&quot;, # Identity Platform ID token for the authenticated user.
  &quot;isNewUser&quot;: True or False, # Whether the authenticated user was created by this request.
  &quot;localId&quot;: &quot;A String&quot;, # The id of the authenticated user. Present in the case of a successful authentication. In the case when the phone could be verified but the account operation could not be performed, a temporary proof will be returned instead.
  &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the authenticated user. Always present in the response.
  &quot;refreshToken&quot;: &quot;A String&quot;, # Refresh token for the authenticated user.
  &quot;temporaryProof&quot;: &quot;A String&quot;, # A proof of the phone number verification, provided if a phone authentication is successful but the user operation fails. This happens when the request tries to link a phone number to a user with an ID token or reauthenticate with an ID token but the phone number is linked to a different user.
  &quot;temporaryProofExpiresIn&quot;: &quot;A String&quot;, # The number of seconds until the temporary proof expires.
  &quot;verificationProof&quot;: &quot;A String&quot;, # Do not use.
  &quot;verificationProofExpiresIn&quot;: &quot;A String&quot;, # Do not use.
}</pre>
</div>

<div class="method">
    <code class="details" id="signUp">signUp(body=None, x__xgafv=None)</code>
  <pre>Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SignUp.
  &quot;captchaChallenge&quot;: &quot;A String&quot;,
  &quot;captchaResponse&quot;: &quot;A String&quot;, # The reCAPTCHA token provided by the reCAPTCHA client-side integration. reCAPTCHA Enterprise uses it for assessment. Required when reCAPTCHA enterprise is enabled.
  &quot;clientType&quot;: &quot;A String&quot;, # The client type: web, Android or iOS. Required when enabling reCAPTCHA enterprise protection.
  &quot;disabled&quot;: True or False, # Whether the user will be disabled upon creation. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
  &quot;displayName&quot;: &quot;A String&quot;, # The display name of the user to be created.
  &quot;email&quot;: &quot;A String&quot;, # The email to assign to the created user. The length of the email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. An anonymous user will be created if not provided.
  &quot;emailVerified&quot;: True or False, # Whether the user&#x27;s email is verified. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
  &quot;idToken&quot;: &quot;A String&quot;, # A valid ID token for an Identity Platform user. If set, this request will link the authentication credential to the user represented by this ID token. For a non-admin request, both the `email` and `password` fields must be set. For an admin request, `local_id` must not be set.
  &quot;instanceId&quot;: &quot;A String&quot;,
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the user to create. The ID must be unique within the project that the user is being created under. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
  &quot;mfaInfo&quot;: [ # The multi-factor authentication providers for the user to create.
    {
      &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
      &quot;phoneInfo&quot;: &quot;A String&quot;, # Phone number to receive OTP for MFA.
    },
  ],
  &quot;password&quot;: &quot;A String&quot;, # The password to assign to the created user. The password must be be at least 6 characters long. If set, the `email` field must also be set.
  &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the user to create. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
  &quot;photoUrl&quot;: &quot;A String&quot;, # The profile photo url of the user to create.
  &quot;recaptchaVersion&quot;: &quot;A String&quot;, # The reCAPTCHA version of the reCAPTCHA token in the captcha_response.
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The project ID of the project which the user should belong to. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). If this is not set, the target project is inferred from the scope associated to the Bearer access token.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant to create a user under. If not set, the user will be created under the default Identity Platform project.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SignUp.
  &quot;displayName&quot;: &quot;A String&quot;, # The created user&#x27;s display name.
  &quot;email&quot;: &quot;A String&quot;, # The created user&#x27;s email.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the ID token expires.
  &quot;idToken&quot;: &quot;A String&quot;, # An Identity Platform ID token for the created user. This field is only set for non-admin requests.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the created user. Always present in the response.
  &quot;refreshToken&quot;: &quot;A String&quot;, # An Identity Platform refresh token for the created user. This field is only set for non-admin requests.
}</pre>
</div>

<div class="method">
    <code class="details" id="update">update(body=None, x__xgafv=None)</code>
  <pre>Updates account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for SetAccountInfo.
  &quot;captchaChallenge&quot;: &quot;A String&quot;,
  &quot;captchaResponse&quot;: &quot;A String&quot;, # The response from reCaptcha challenge. This is required when the system detects possible abuse activities.
  &quot;createdAt&quot;: &quot;A String&quot;, # The timestamp in milliseconds when the account was created.
  &quot;customAttributes&quot;: &quot;A String&quot;, # JSON formatted custom attributes to be stored in the Identity Platform ID token. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;deleteAttribute&quot;: [
    &quot;A String&quot;,
  ],
  &quot;deleteProvider&quot;: [ # The Identity Providers to unlink from the user&#x27;s account.
    &quot;A String&quot;,
  ],
  &quot;disableUser&quot;: True or False, # If true, marks the account as disabled, meaning the user will no longer be able to sign-in.
  &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s new display name to be updated in the account&#x27;s attributes. The length of the display name must be less than or equal to 256 characters.
  &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s new email to be updated in the account&#x27;s attributes. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. If [email enumeration protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, the email cannot be changed by the user without verifying the email first, but it can be changed by an administrator.
  &quot;emailVerified&quot;: True or False, # Whether the user&#x27;s email has been verified. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).
  &quot;idToken&quot;: &quot;A String&quot;, # A valid Identity Platform ID token. Required when attempting to change user-related information.
  &quot;instanceId&quot;: &quot;A String&quot;,
  &quot;lastLoginAt&quot;: &quot;A String&quot;, # The timestamp in milliseconds when the account last logged in.
  &quot;linkProviderUserInfo&quot;: { # Information about the user as provided by various Identity Providers. # The provider to be linked to the user&#x27;s account. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).
    &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
    &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
    &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
    &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
    &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
    &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
    &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
    &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
  },
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the user. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control). For requests from end-users, an ID token should be passed instead.
  &quot;mfa&quot;: { # Multi-factor authentication related information. # The multi-factor authentication related information to be set on the user&#x27;s account. This will overwrite any previous multi-factor related information on the account. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).
    &quot;enrollments&quot;: [ # The second factors the user has enrolled.
      { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
        &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
        &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
          &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
        },
        &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
        &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
        &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
        &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
        },
        &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
      },
    ],
  },
  &quot;oobCode&quot;: &quot;A String&quot;, # The out-of-band code to be applied on the user&#x27;s account. The following out-of-band code types are supported: * VERIFY_EMAIL * RECOVER_EMAIL * REVERT_SECOND_FACTOR_ADDITION * VERIFY_AND_CHANGE_EMAIL
  &quot;password&quot;: &quot;A String&quot;, # The user&#x27;s new password to be updated in the account&#x27;s attributes. The password must be at least 6 characters long.
  &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number to be updated in the account&#x27;s attributes.
  &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s new photo URL for the account&#x27;s profile photo to be updated in the account&#x27;s attributes. The length of the URL must be less than or equal to 2048 characters.
  &quot;provider&quot;: [ # The Identity Providers that the account should be associated with.
    &quot;A String&quot;,
  ],
  &quot;returnSecureToken&quot;: True or False, # Whether or not to return an ID and refresh token. Should always be true.
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The project ID for the project that the account belongs to. Specifying this field requires Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control). Requests from end users should pass an Identity Platform ID token instead.
  &quot;tenantId&quot;: &quot;A String&quot;, # The tenant ID of the Identity Platform tenant that the account belongs to. Requests from end users should pass an Identity Platform ID token rather than setting this field.
  &quot;upgradeToFederatedLogin&quot;: True or False, # Whether the account should be restricted to only using federated login.
  &quot;validSince&quot;: &quot;A String&quot;, # Specifies the minimum timestamp in seconds for an Identity Platform ID token to be considered valid.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SetAccountInfo
  &quot;displayName&quot;: &quot;A String&quot;, # The account&#x27;s display name.
  &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address.
  &quot;emailVerified&quot;: True or False, # Whether the account&#x27;s email has been verified.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the Identity Platform ID token expires.
  &quot;idToken&quot;: &quot;A String&quot;, # An Identity Platform ID token for the account. This is used for legacy user sign up.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the authenticated user.
  &quot;newEmail&quot;: &quot;A String&quot;, # The new email that has been set on the user&#x27;s account attributes.
  &quot;passwordHash&quot;: &quot;A String&quot;, # Deprecated. No actual password hash is currently returned.
  &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s photo URL for the account&#x27;s profile photo.
  &quot;providerUserInfo&quot;: [ # The linked Identity Providers on the account.
    { # Information about the user as provided by various Identity Providers.
      &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
      &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
      &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
      &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
      &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
      &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
      &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
      &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
    },
  ],
  &quot;refreshToken&quot;: &quot;A String&quot;, # A refresh token for the account. This is used for legacy user sign up.
}</pre>
</div>

<div class="method">
    <code class="details" id="verifyIosClient">verifyIosClient(body=None, x__xgafv=None)</code>
  <pre>Verifies an iOS client is a real iOS device. If the request is valid, a receipt will be sent in the response and a secret will be sent via Apple Push Notification Service. The client should send both of them back to certain Identity Platform APIs in a later call (for example, /accounts:sendVerificationCode), in order to verify the client. The bundle ID is required in the request header as `x-ios-bundle-identifier`. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for VerifyIosClient
  &quot;appToken&quot;: &quot;A String&quot;, # A device token that the iOS client gets after registering to APNs (Apple Push Notification service).
  &quot;isSandbox&quot;: True or False, # Whether the app token is in the iOS sandbox. If false, the app token is in the production environment.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for VerifyIosClient.
  &quot;receipt&quot;: &quot;A String&quot;, # Receipt of successful app token validation.
  &quot;suggestedTimeout&quot;: &quot;A String&quot;, # Suggested time that the client should wait in seconds for delivery of the push notification.
}</pre>
</div>

</body></html>